#!/bin/bash

# select name_, password_, id_, createdat_, status_ from t_user;

host="U:3000"
prefix="/api/user"
id="83d20d70-3f59-11e7-9704-d976d3928fb5"
token='2d2b36c0-42da-11e7-9c83-a1397705a8f7'

# curl ${host}/sync
# curl ${host}${prefix}/findAll
# curl -d "id=${id}" ${host}${prefix}/findById

# curl -d "name=awoo&password=123" ${host}${prefix}/login
curl -d "name=curl13&password=123&token=${token}" ${host}${prefix}/add
# curl -H 'Content-Type: application/json' -X POST -d '{"name":"bla"}' ${host}${prefix}/add
# curl -d "name=deng&newname=balabala" ${host}${prefix}/update
# curl -d "id=${id}" ${host}${prefix}/delete
# curl -d "name=hah" ${host}${prefix}/disable

